import {ElMessage, ElMessageBox} from "element-plus";

/**
 * 消息提示框
 *
 */
export const showMessage = (message,type) => {
    ElMessage({
        showClose: true,
        message: message,
        type: type,
    })
}

/**
 * 消息确认框
 * @param msg
 */
export const confirm=(msg) => {
    return ElMessageBox.confirm(
        msg,
        {
            confirmButtonText: '确认',
            cancelButtonText: '取消',
            showClose:false,
            showCancelButton: false,
            closeOnClickModal: false,
            closeOnPressEscape: false,
            roundButton: true,
            center:true,
        }
    )
}
